tests/sizes: Improve metadata validation
authorDan Nicholson <nicholson@endlessm.com>
Tue, 22 Oct 2019 20:59:19 +0000 (14:59 -0600)
committerDan Nicholson <nicholson@endlessm.com>
Tue, 21 Jan 2020 03:42:27 +0000 (20:42 -0700)
commit694b741a366f4abb523f6e4ffbec3f56c5934d1a
tree24d8ba73b8f011e841884efa2847e1edfdda9c21
parent37045b4b468460785926d73cc2bc4d288caaa9b3
tests/sizes: Improve metadata validation

Ensure all 3 of the checksum, compressed size and uncompressed size are
correct. For repeatable objects, skip xattrs and use canonical
permissions for the commit. For the sizes, read a varint rather than
assuming they will be a single byte. To work around bugs in gjs with
byte array unpacking, manually build the array byte by byte. Split out
some helper functions to use in subsequent tests.
tests/test-sizes.js